package net.cctech.product_service.dao;


import net.cctech.product_service.domain.Product;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author Can.Ru
 */

public interface ProductRepository extends JpaRepository<Product,Integer> {

    /**
     * 根据id查商品
     * @param id
     * @return
     */
    Product findOneById(Integer id);
}
